<?php defined('BASEPATH') OR exit('No direct script access allowed');

	class module_class extends CI_Model {
	
		public function list_modules(){
			$query = $this->db->get_where('jtn_modules',array('intDisabled'=>0));
			
			if ($query->num_rows() > 0){
				$result = $query->result_array();
				return $result;
			}
			else{
				return 0;
			}
		}
	} // end class
?>